#求二维list中第0列元素之和
def calc(lst):
    return sum(sub[1] for sub in lst)

def test_calc():
    my_list = [[1, 2, 3], [40, 50, 60], [9, 8, 7]]
    assert calc(my_list) == 60
